package com.b511.swpu.cementbackend.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 盐膏层特殊情况 对应表 BA_SPECIAL_STRATUM
public class BA_SpecialStratum extends BABaseEntity {
    @Id
    @GenericGenerator(name="specialStratumAreaGenerator", strategy="uuid") //这个是hibernate的注解/生成32位UUID
    @GeneratedValue(generator="specialStratumAreaGenerator")
    private String BA_SpecialStratum_ID;

    @Basic
    @Column(name = "BOTTOMDEPTH")
    private Double bottomDepth;

    @Basic
    @Column(name = "BOTTOMVERTICALDEPTH")
    private Double bottomVerticalDepth;

    @Basic
    @Column(name = "FORMATIONPROPERTY", length = 50)
    private String formationProperty;

    @Basic
    @Column(name = "HORIZON", length = 50)
    private String horizon;

    @Basic
    @Column(name = "THICKNESS", length = 50)
    private Double thickness;

    @Basic
    @Column(name = "STRUCTURALNAME", length = 50)
    private String structuralName;

    @Basic
    @Column(name = "CREEPCOEFFICIENT")
    private Double creepCoefficient;

    @Basic
    @Column(name = "STRATAPRESSURE")
    private Double strataPressure;

    @Basic
    @Column(name = "COLLPRESSURE")
    private Double collPressure;

    @Basic
    @Column(name = "LEAKPRESSURE")
    private Double leakPressure;

    @ManyToOne
    @JoinColumn(name="ba_well_id")
    private BA_Well well;

}
